<html>
<head><meta charset="utf-8"><title>Unable to add failing rustdoc test · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html">Unable to add failing rustdoc test</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222854551"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222854551" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222854551">(Jan 15 2021 at 13:09)</a>:</h4>
<p>I fixed <a href="https://github.com/rust-lang/rust/issues/80992">#80992</a> in <a href="https://github.com/rust-lang/rust/pull/81040">https://github.com/rust-lang/rust/pull/81040</a> and I'm now trying to add a test. Currently I have this file:</p>
<div class="codehilite"><pre><span></span><code>// compile-flags:--test

pub fn test() -&gt; Result&lt;(), ()&gt; {
    //! ```
    //! fn test() -&gt; Result&lt; {}
    //! ```
    Ok(())
}
</code></pre></div>
<p>This is the stdout file</p>
<div class="codehilite"><pre><span></span><code>running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 1 test
test src/lib.rs - test (line 2) ... FAILED

failures:

---- $DIR/issue-80992.rs - test (line 2) stdout ----
error: expected one of `,`, `:`, `=`, or `&gt;`, found `}`
  --&gt; src/lib.rs:4:1
   |
LL | fn test() -&gt; Result&lt; {}
   |                        - expected one of `,`, `:`, `=`, or `&gt;`
LL | } _doctest_main_src_lib_rs_2_0() }
   | ^ unexpected token

error: aborting due to previous error

Couldn&#39;t compile the test.

failures:
    src/lib.rs - test (line 2)

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
</code></pre></div>
<p>When I run the test it fails but the error message doesn't say (or at least I can't see it) what's wrong. Output of <code>./x.py test --stage 1 src/test/rustdoc-ui/issue-80992.rs</code>:</p>
<div class="codehilite"><pre><span></span><code>Updating only changed submodules
Submodules updated in 0.02 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.08s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.12s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.08s
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 tool compiletest (x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.08s
Building rustdoc for stage1 (x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.08s
Check compiletest suite=rustdoc-ui mode=ui (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)

running 1 test
F
failures:

---- [ui] rustdoc-ui/issue-80992.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit code: 101
command: &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustdoc&quot; &quot;/home/omer/rust/rust/src/test/rustdoc-ui/issue-80992.rs&quot; &quot;-Zthreads=1&quot; &quot;--target=x86_64-unknown-linux-gnu&quot; &quot;--error-format&quot; &quot;json&quot; &quot;-Zui-testing&quot; &quot;-Zdeduplicate-diagnostics=no&quot; &quot;-Zemit-future-incompat-report&quot; &quot;-o&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/issue-80992&quot; &quot;-Cdebuginfo=0&quot; &quot;-Zunstable-options&quot; &quot;-Lnative=/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;--test&quot; &quot;-L&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/issue-80992/auxiliary&quot;
stdout:
------------------------------------------

running 1 test
test src/test/rustdoc-ui/issue-80992.rs - test (line 4) ... FAILED

failures:

---- src/test/rustdoc-ui/issue-80992.rs - test (line 4) stdout ----
error: expected one of `,`, `:`, `=`, or `&gt;`, found `}`
  --&gt; src/test/rustdoc-ui/issue-80992.rs:6:1
   |
LL | fn test() -&gt; Result&lt; {}
   |                        - expected one of `,`, `:`, `=`, or `&gt;`
LL | } _doctest_main_src_test_rustdoc_ui_issue_80992_rs_4_0() }
   | ^ unexpected token

error: aborting due to previous error

Couldn&#39;t compile the test.

failures:
    src/test/rustdoc-ui/issue-80992.rs - test (line 4)

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s


------------------------------------------
stderr:
------------------------------------------

------------------------------------------



failures:
    [ui] rustdoc-ui/issue-80992.rs

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 95 filtered out; finished in 0.05s

Some tests failed in compiletest suite=rustdoc-ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu


command did not execute successfully: &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest&quot; &quot;--compile-lib-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib&quot; &quot;--run-lib-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;--rustc-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc&quot; &quot;--rustdoc-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustdoc&quot; &quot;--src-base&quot; &quot;/home/omer/rust/rust/src/test/rustdoc-ui&quot; &quot;--build-base&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-ui&quot; &quot;--stage-id&quot; &quot;stage1-x86_64-unknown-linux-gnu&quot; &quot;--suite&quot; &quot;rustdoc-ui&quot; &quot;--mode&quot; &quot;ui&quot; &quot;--target&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;--host&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;--llvm-filecheck&quot; &quot;/home/omer/Downloads/clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/FileCheck&quot; &quot;--nodejs&quot; &quot;/home/omer/bin/node&quot; &quot;--host-rustcflags&quot; &quot;-Cdebuginfo=0 -Zunstable-options  -Lnative=/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;--target-rustcflags&quot; &quot;-Cdebuginfo=0 -Zunstable-options  -Lnative=/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;--docck-python&quot; &quot;/usr/bin/python&quot; &quot;--lldb-python&quot; &quot;/usr/bin/python&quot; &quot;--gdb&quot; &quot;/usr/bin/gdb&quot; &quot;issue-80992.rs&quot; &quot;--quiet&quot; &quot;--llvm-version&quot; &quot;10.0.0&quot; &quot;--llvm-components&quot; &quot;aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard codegen core coroutines coverage debuginfocodeview debuginfodwarf debuginfogsym debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker engine executionengine frontendopenmp fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo instcombine instrumentation interpreter ipo irreader jitlink lanai lanaiasmparser lanaicodegen lanaidesc lanaidisassembler lanaiinfo libdriver lineeditor linker lto mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts object objectyaml option orcerror orcjit passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvutils runtimedyld scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target textapi transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86utils xcore xcorecodegen xcoredesc xcoredisassembler xcoreinfo xray&quot; &quot;--system-llvm&quot; &quot;--cc&quot; &quot;&quot; &quot;--cxx&quot; &quot;&quot; &quot;--cflags&quot; &quot;&quot; &quot;--adb-path&quot; &quot;adb&quot; &quot;--adb-test-dir&quot; &quot;/data/tmp/work&quot; &quot;--android-cross-path&quot; &quot;&quot;
expected success, got: exit code: 1


failed to run: /home/omer/rust/rust/build/bootstrap/debug/bootstrap test --stage 1 src/test/rustdoc-ui/issue-80992.rs
Build completed unsuccessfully in 0:00:00
</code></pre></div>
<p>Any tips?</p>



<a name="222889050"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222889050" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222889050">(Jan 15 2021 at 17:02)</a>:</h4>
<p><span class="user-mention" data-user-id="119169">@osa1</span> I think you want to add <code>compile_fail</code> to the code block</p>



<a name="222889079"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222889079" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222889079">(Jan 15 2021 at 17:02)</a>:</h4>
<p>otherwise the compiler tries to compile the test but fails, which rustdoc counts as an error</p>



<a name="222957024"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957024" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957024">(Jan 16 2021 at 03:46)</a>:</h4>
<p>Hm, I guess that would also work, though I can't check the error message if I do that. In any case, even with that I can't make this work. Test:</p>
<div class="codehilite"><pre><span></span><code>// compile-flags:--test

pub fn test() -&gt; Result&lt;(), ()&gt; {
    //! ```compile_fail
    //! fn test() -&gt; Result&lt; {}
    //! ```
    Ok(())
}
</code></pre></div>
<p>.stdout file:</p>
<div class="codehilite"><pre><span></span><code>running 1 test
test $DIR/issue-80992.rs - test (line 4) ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
</code></pre></div>
<p>The test still fails and I have no idea why.</p>



<a name="222957159"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957159" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957159">(Jan 16 2021 at 03:49)</a>:</h4>
<p>OK, found it. I have to normalize the stdout file manually. I thought that's done automatically somehow.</p>



<a name="222957160"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957160" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957160">(Jan 16 2021 at 03:49)</a>:</h4>
<p>can you post the error?</p>



<a name="222957166"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957166" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957166">(Jan 16 2021 at 03:49)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> I just needed these lines:</p>
<div class="codehilite"><pre><span></span><code>// normalize-stdout-test: &quot;src/test/rustdoc-ui&quot; -&gt; &quot;$$DIR&quot;
// normalize-stdout-test &quot;finished in \d+\.\d+s&quot; -&gt; &quot;finished in $$TIME&quot;
</code></pre></div>



<a name="222957216"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957216" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957216">(Jan 16 2021 at 03:50)</a>:</h4>
<p>I can perhaps use the failing test now (instead of <code>compile_fail</code>). I'll try that now.</p>



<a name="222957239"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957239" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957239">(Jan 16 2021 at 03:51)</a>:</h4>
<p>Maybe this is fine though, as compile_fail is also panicking in master branch and my PR fixes it.<br>
Thanks for the help <span class="user-mention" data-user-id="232545">@Joshua Nelson</span> !</p>



<a name="222957257"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957257" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957257">(Jan 16 2021 at 03:52)</a>:</h4>
<p>Ugh wait... That's not it, I was running another test.. :sigh: Sorry it's 6AM here..</p>



<a name="222957309"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957309" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957309">(Jan 16 2021 at 03:52)</a>:</h4>
<p>feel free to wait until tomorrow haha</p>



<a name="222957315"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957315" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957315">(Jan 16 2021 at 03:52)</a>:</h4>
<p>Let me paste the current files. Test:</p>
<div class="codehilite"><pre><span></span><code>// compile-flags:--test
// normalize-stdout-test: &quot;src/test/rustdoc-ui&quot; -&gt; &quot;$$DIR&quot;
// normalize-stdout-test &quot;finished in \d+\.\d+s&quot; -&gt; &quot;finished in $$TIME&quot;

pub fn test() -&gt; Result&lt;(), ()&gt; {
    //! ```compile_fail
    //! fn test() -&gt; Result&lt; {}
    //! ```
    Ok(())
}
</code></pre></div>
<p>stdout file:</p>
<div class="codehilite"><pre><span></span><code>running 1 test
test $DIR/issue-80992.rs - test (line 4) ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
</code></pre></div>
<p>Error:</p>
<div class="codehilite"><pre><span></span><code>failures:

---- [ui] rustdoc-ui/issue-80992.rs stdout ----

error: ui test compiled successfully!
status: exit code: 0
command: &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustdoc&quot; &quot;/home/omer/rust/rust/src/test/rustdoc-ui/issue-80992.rs&quot; &quot;-Zthreads=1&quot; &quot;--target=x86_64-unknown-linux-gnu&quot; &quot;--error-format&quot; &quot;json&quot; &quot;-Zui-testing&quot; &quot;-Zdeduplicate-diagnostics=no&quot; &quot;-Zemit-future-incompat-report&quot; &quot;-o&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/issue-80992&quot; &quot;-Cdebuginfo=0&quot; &quot;-Zunstable-options&quot; &quot;-Lnative=/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;--test&quot; &quot;-L&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/issue-80992/auxiliary&quot;
stdout:
------------------------------------------

running 1 test
test src/test/rustdoc-ui/issue-80992.rs - test (line 6) ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s


------------------------------------------
stderr:
------------------------------------------

------------------------------------------



failures:
    [ui] rustdoc-ui/issue-80992.rs

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 95 filtered out; finished in 0.05s

Some tests failed in compiletest suite=rustdoc-ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu


command did not execute successfully: &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest&quot; &quot;--compile-lib-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib&quot; &quot;--run-lib-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;--rustc-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc&quot; &quot;--rustdoc-path&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustdoc&quot; &quot;--src-base&quot; &quot;/home/omer/rust/rust/src/test/rustdoc-ui&quot; &quot;--build-base&quot; &quot;/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-ui&quot; &quot;--stage-id&quot; &quot;stage1-x86_64-unknown-linux-gnu&quot; &quot;--suite&quot; &quot;rustdoc-ui&quot; &quot;--mode&quot; &quot;ui&quot; &quot;--target&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;--host&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;--llvm-filecheck&quot; &quot;/home/omer/Downloads/clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/FileCheck&quot; &quot;--nodejs&quot; &quot;/home/omer/bin/node&quot; &quot;--host-rustcflags&quot; &quot;-Cdebuginfo=0 -Zunstable-options  -Lnative=/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;--target-rustcflags&quot; &quot;-Cdebuginfo=0 -Zunstable-options  -Lnative=/home/omer/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers&quot; &quot;--docck-python&quot; &quot;/usr/bin/python&quot; &quot;--lldb-python&quot; &quot;/usr/bin/python&quot; &quot;--gdb&quot; &quot;/usr/bin/gdb&quot; &quot;issue-80992.rs&quot; &quot;--quiet&quot; &quot;--llvm-version&quot; &quot;10.0.0&quot; &quot;--llvm-components&quot; &quot;aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard codegen core coroutines coverage debuginfocodeview debuginfodwarf debuginfogsym
debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker engine executionengine frontendopenmp fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo instcombine instrumentation interpreter ipo irreader jitlink lanai lanaiasmparser lanaicodegen lanaidesc lanaidisassembler lanaiinfo libdriver lineeditor linker lto mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx
nvptxcodegen nvptxdesc nvptxinfo objcarcopts object objectyaml option orcerror orcjit passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvutils runtimedyld scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target textapi transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86utils xcore xcorecodegen xcoredesc xcoredisassembler xcoreinfo xray&quot; &quot;--system-llvm&quot; &quot;--cc&quot; &quot;&quot; &quot;--cxx&quot; &quot;&quot; &quot;--cflags&quot; &quot;&quot; &quot;--adb-path&quot; &quot;adb&quot; &quot;--adb-test-dir&quot;
&quot;/data/tmp/work&quot; &quot;--android-cross-path&quot; &quot;&quot;
</code></pre></div>



<a name="222957340"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957340" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957340">(Jan 16 2021 at 03:53)</a>:</h4>
<p>I think you need <code>// check-pass</code> at the top</p>



<a name="222957414"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957414" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957414">(Jan 16 2021 at 03:54)</a>:</h4>
<p>OK, that helped, I now get a diff of expected vs. found</p>



<a name="222957431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Unable%20to%20add%20failing%20rustdoc%20test/near/222957431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Unable.20to.20add.20failing.20rustdoc.20test.html#222957431">(Jan 16 2021 at 03:55)</a>:</h4>
<p>.. and it passes. Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>